package com.the_last.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.the_last.pojo.po.SysRole;
import com.the_last.pojo.po.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    
    List<SysRole> selectRolesByUserId(@Param("userId") Long userId);
    
    List<SysPermission> selectPermissionsByRoleId(@Param("roleId") Long roleId);
    
}